﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace th21
{
    class NhanVienHopDong:NhanVien
    {
        private String Manv;
        private double Mucluong;
        

        public string MANV
        {
            get { return this.Manv; }
            set { this.Manv = value; }
        }
        public double MUCLUONG
        {
            get { return this.Mucluong; }
            set { this.Mucluong = value; }
        }
        

        public NhanVienHopDong()
            : base()
        {
            this.Manv = null;
            this.Mucluong = 0;
            
        }
        public NhanVienHopDong(String HT, String NS, String GT, long CM, String NV, double ML)
            : base(HT,NS,GT,CM)
        {
            this.Manv = NV;
            this.Mucluong = ML;
            
        }

        public void Nhap()
        {
            base.Nhap();
            Console.Write("Ma nhan vien:");
            this.Manv = Console.ReadLine();
            Console.Write("Muc luong:");
            this.Mucluong = Convert.ToDouble( Console.ReadLine());
            
        }
        public void Xuat()
        {
            base.Xuat();
            Console.Write("\n Ma nhan vien:" + this.Manv);
            Console.Write("\n Muc luong:" + this.Mucluong);
            Console.Write("\n Phu cap:" + this.Phucap());
            Console.Write("\n Thuc linh:" + this.Thuclinh());

        }
        public double Phucap()
        {
            return 10 * Mucluong / 100;
        }
        public double Thuclinh()
        {
            return Mucluong + Phucap();

        }
    }
   
}
